-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Validator] Mention exactly
option for Length constraint
#17764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Validator] Mention exactly
option for Length constraint
#17764
Conversation
without passing any named argument to it. This means that for example, | ||
``@Assert\Length(20)`` and ``@Assert\Length(exactly=20)`` are equivalent, as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove the annotation part in a follow up PR against 6.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take care of this after the merge 👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After my comment
54caa90
to
99ac309
Compare
reference/constraints/Length.rst
Outdated
``@Assert\Length(20)`` and ``@Assert\Length(exactly=20)`` are equivalent, as | ||
well as ``#[Assert\Length(20)]`` and ``#[Assert\Length(exactly: 20)]``. | ||
|
||
.. versionadded:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. versionadded:: | |
.. versionadded:: 5.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad 🤦 Thanks again!
Thank you Alexandre. |
99ac309
to
2c41c8b
Compare
I already merged and added the version in fd74bd6 |
…Length constraint (alexandre-daubois) This PR was merged into the 6.0 branch. Discussion ---------- [Validator] Remove annotations from `exactly` option of Length constraint Follow-up #17764 (comment) Commits ------- 13d15fa [Validator] Remove annotations from `exactly` option of Length constraint
Fixes #17059